import request from '@/utils/request'
import type { PageDto, PageReqDto } from '../types'
import type { RoyaltyRateDto } from '../rate/types'

/**
 * 根据用户id获取业绩相关
 * @param params 
 * @returns 
 */
export function getSalesRoyaltyRate(params: {
    userId: number
    startTime: string
    endTime: string
}): Promise<RoyaltyRateDto[]> {
    return request.get('/crm-prod/crm/rate/record/sales-royalty-rate', {
        params
    })
}
